<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/colleges_video.css">
    <link rel="stylesheet" href="/css/tabbar.css">
    <script src="/js/base.js"></script>
  </head>
  <body>
    <div class="colleges_video">
      <!-- <iframe class="video" src='https://player.youku.com/embed/XNDU4MDU5MDIxNg==' frameborder=0 'allowfullscreen'></iframe> -->
      <video class="video" controls>
        <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4">
      </video>
      <div class="tabs">
        <nav class="nav">
          <a href="javascript:;" data-cont="tab_desc">
            <span class="label">介绍</span>
          </a>
          <a href="javascript:;" data-cont="tab_list">
            <span class="label">目录</span>
          </a>
          <a href="javascript:;" data-cont="tab_eva">
            <span class="label">评价</span>
          </a>
        </nav>
        <div class="cont" id="tab_desc">
          <h3>关于四星级技师培训</h3>
          <p>汽修技师四年制专业介绍 培训目标 CONTENT 专业培养汽车检测与维修的技术型、应用型的高级技能及高管人才,培养后具有到职业</p>
          <p>汽修技师四年制专业介绍 培训目标 CONTENT 专业培养汽车检测与维修的技术型、应用型的高级技能及高管人才,培养后具有到职业</p>
        </div>
        <div class="cont" id="tab_list">
          <div class="lessons_list">
            <div class="lessons_class">
              <div class="name">课时1：关于四星级技师培训</div>
              <a class="btn"><img src="/assets/colleges_video_download.png"></a>
            </div>
            <div class="lessons_class">
              <div class="name">课时2：关于四星级技师培训</div>
              <a class="btn"><img src="/assets/colleges_video_download.png"></a>
            </div>
            <div class="lessons_class">
              <div class="name">课时3：关于四星级技师培训</div>
              <a class="btn"><img src="/assets/colleges_video_download.png"></a>
            </div>
          </div>
        </div>
        <div class="cont" id="tab_eva">
          <div class="eva_num">
            <h4 class="num">评价详情<span>（133人评价）</span></h4>
            <span class="user_eva">我要评价</span>
          </div>
          <div class="eva_list">
            <div class="avtor"><img src="/assets/colleges_video_avtor.png" width="100%"></div>
            <div class="content">
              <div class="name">潜水的鱼</div>
              <div class="time">2020-03-12</div>
              <p class="txt">老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。</p>
            </div>
          </div>
          <div class="eva_list">
            <div class="avtor"><img src="/assets/colleges_video_avtor.png" width="100%"></div>
            <div class="content">
              <div class="name">潜水的鱼</div>
              <div class="time">2020-03-12</div>
              <p class="txt">老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。</p>
            </div>
          </div>
          <div class="eva_list">
            <div class="avtor"><img src="/assets/colleges_video_avtor.png" width="100%"></div>
            <div class="content">
              <div class="name">潜水的鱼</div>
              <div class="time">2020-03-12</div>
              <p class="txt">老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。老师讲的系统，感觉提升了不少。</p>
            </div>
          </div>
        </div>
      </div>
      <div class="actions">
        <div class="share">
          <img src="/assets/colleges_lesson_two_share.png">
          <span>分享</span>
        </div>
        <a class="check">
          <img src="/assets/colleges_lesson_two_check.png">
          <span>参加考试</span>
        </aa>
      </div>
      <div class="tabbar">
        <div class="tabbar_cell">
          <div class="tabbar_icon home">
            <img src="/assets/tabbar_icon_home.png">
            <img src="/assets/tabbar_icon_home_active.png">
          </div>
          <div class="tabbar_name">首页</div>
        </div>
        <div class="tabbar_cell active">
          <div class="tabbar_icon college">
            <img src="/assets/tabbar_icon_college.png">
            <img src="/assets/tabbar_icon_college_active.png">
          </div>
          <div class="tabbar_name">课程</div>
        </div>
        <div class="tabbar_cell">
          <div class="tabbar_icon mine">
            <img src="/assets/tabbar_icon_mine.png">
            <img src="/assets/tabbar_icon_mine_active.png">
          </div>
          <div class="tabbar_name">我的</div>
        </div>
      </div>
    </div>
    <script>
			//默认显示一个当前的样式，点击导航实现切换
			function tabs(key){
				var navs=document.querySelectorAll('nav a');
				//遍历给导航绑定样式，并且添加样式
				for(var i=0;i<navs.length;i++){
					if(key==i){
						navs[i].classList.add('active');
						//拿到Id
						var secId=navs[i].dataset['cont'];
						//获取对应标签
						document.querySelector('#'+secId).style.display='block';
					}
					//绑定点击事件
					navs[i].addEventListener('click', function(){
						var currentNav=document.querySelector('.active');
						var currentId=currentNav.dataset['cont'];
						currentNav.classList.remove('active');
						document.querySelector('#'+currentId).style.display='none';
						
						this.classList.add('active');
						var myId=this.dataset['cont'];
						document.querySelector('#'+myId).style.display='block';
						
					})
				}
			}
			tabs(0);
		</script>
  </body>
</html>
